package newWork.service.impl;

import newWork.dao.IStaffDao;
import newWork.entity.StaffEntity;
import newWork.service.IStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffService implements IStaffService {

	
	private IStaffDao dao;

	@Autowired
	public StaffService(IStaffDao dao) {
		this.dao = dao;
	}
	
	@Override
	public void add(StaffEntity entity) {
		dao.add(entity);
	}
	
	@Override
	public void delete(StaffEntity entity) {
		dao.delete(entity);
	}
	
	@Override
	public void update(StaffEntity entity) {
		dao.update(entity);
	}
	
	@Override
	public List<StaffEntity> select(StaffEntity entity) {
		return dao.select(entity);
	}

	@Override
	public List<StaffEntity> batchSelect(List<Integer> Id) {
		return dao.batchSelect(Id);
	}

	@Override
	public Long likeSelectCount(StaffEntity entity) {
		return dao.likeSelectCount(entity);
	}

}
